package com.hao.vertx.web.datasource;


import com.hao.vertx.core.util.VertxHolder;
import io.vertx.ext.jdbc.impl.JDBCClientImpl;

public class JDBCClientHolder {

    private static JDBCClientImpl jdbcClient;

    public static JDBCClientImpl getJdbcClient() {
        return jdbcClient;
    }

    public static void init() {
        jdbcClient = new JDBCClientImpl(VertxHolder.getVertxInstance(), DataSourceHolder.getDataSource());
    }
}
